package demo1;

public class Test {
    public static void main(String[] args) {
        Student student1 = new Student("zhangsan",10,67);
        Student student2 = new Student("lisi",20,100);
        if (student1.compareTo(student2) > 0){
            System.out.println("s1 > s2");
        } else if (student1.compareTo(student2) == 0) {
            System.out.println("s1 == s2");
        }else{
            System.out.println("s1 < s2");
        }
    }
}
